//
// Created by 66477 on 2022/9/28.
//

#ifndef DATA_STRUCTURE_NODE4_2_H
#define DATA_STRUCTURE_NODE4_2_H

#include <iostream>

using namespace std;

class Node4_2 {
private:
    char data;
    Node4_2 *next = nullptr;
public:
    Node4_2() {}

    Node4_2(char data) : data(data) {}

    char getData() const {
        return data;
    }

    void setData(char data) {
        Node4_2::data = data;
    }

    Node4_2 *getNext() const {
        return next;
    }

    void setNext(Node4_2 *next) {
        Node4_2::next = next;
    }
};

#endif //DATA_STRUCTURE_NODE4_2_H
